import request from '@/utils/request'

export function fetchHomeProductCatrList(depotId) {
  return request({
    url:'/home/category/list/'+depotId,
    method:'get',
   // params:params
  })
}
export function createHomeProductCate(data) {
  return request({
    url:'/home/category/create',
    method:'post',
    data:data
  })
}
export function updateHomeProductCate(id,data) {
  return request({
    url:'/home/category/update/',
    method:'post',
    data:data
  })
}
export function deleteHomeProductCate(id) {
    return request({
      url:'/home/category/del/'+id,
      method:'get',
      //data:data
    })
}